package org.com.coolfish.common.database.service;


import java.math.BigDecimal;
import java.util.List;
import org.com.coolfish.common.database.entity.kuyuAgentCommission;
import org.com.coolfish.common.database.repository.kuyuAgentCommissionRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@Service
public class kuyuAgentCommissionService {
	@Autowired
	private kuyuAgentCommissionRepository repository;
	
	@Transactional
    public void updateMoney(BigDecimal money,Integer id){
    	repository.updateMoney(money, id);
    }
	
	@Transactional
    public List<kuyuAgentCommission> queryeMoney(Integer aid){
    	return repository.queryeMoney(aid);
    }
    @Transactional
	public void save(kuyuAgentCommission kuyu) {
    	repository.saveAndFlush(kuyu);
	}
    
}
